function regExpMatch(url, pattern) {
	try { return new RegExp(pattern).test(url); } catch(ex) { return false; }
}

function FindProxyForURL(url, host) {
	if (shExpMatch(url, '*.google.com/*') || shExpMatch(url, '*google.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.ipv6.cgbt.cn/*') || shExpMatch(url, '*ipv6.cgbt.cn/*')) return 'DIRECT';
	if (shExpMatch(url, '*.zhixing.bjtu.edu.cn/*') || shExpMatch(url, '*zhixing.bjtu.edu.cn/*')) return 'DIRECT';
  if (shExpMatch(url,'*.webcache.googleusercontent.com/*') return 'DIRECT';
  if (shExpMatch(url, '*.bt.neu6.edu.cn/*') ) return 'DIRECT';
	if (shExpMatch(url, '*.ipv6.*') ) return 'DIRECT';
	return 'PROXY 10.20.36.123:808';
}